package io.github.kouleen.manager.domain;

import java.util.Collections;
import java.util.List;

/**
 * @author zhangqing
 * @since 2025/1/25 14:17
 */
public class IPage<T> {
    protected List<T> records = Collections.emptyList();
    protected long total = 0L;
    protected long size = 10L;
    protected long current = 1L;

    public IPage() {
    }

    public List<T> getRecords() {
        return this.records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public long getTotal() {
        return this.total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public long getSize() {
        return this.size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public long getCurrent() {
        return this.current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }
}
